<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class MenuSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $menus = [
            [
                'name' => '主导航菜单',
                'location' => 'header',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => '底部菜单',
                'location' => 'footer',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => '侧边栏菜单',
                'location' => 'sidebar',
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ];

        DB::table('menus')->insert($menus);
    }
}